package com.wuseguang.springcloud.controller;


import com.wuseguang.springcloud.Filter.RequestParameterWrapper;
import com.wuseguang.springcloud.entity.Exams;
import com.wuseguang.springcloud.service.ExamsService;
import com.wuseguang.springcloud.util.Result;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 考试表 前端控制器
 * </p>
 *
 * @author 
 * @since 2020-04-28
 */
@RestController
@RequestMapping("/brands")
public class ExamsController {

    private Logger logger = LoggerFactory.getLogger(this.toString());
    @Autowired
    private ExamsService examsServiceImpl;


    /**
     * 班牌考试信息
     * @param deviceid 设备id
     * @return
     */
    @RequestMapping("/findExamInformation")
    public Result findExamInformation(@RequestParam(value = "deviceid") String deviceid) {
        logger.info("班牌考试信息 设备id = {}",deviceid);
        return  examsServiceImpl.findExamInformation(deviceid);
    }



}

